<template>
  <div>
    <h4>透传Attribute</h4>
  </div>
</template>

<script setup>

import { useAttrs } from 'vue';

// 接收到没有被props和emits接收的属性
// 透传attributes
const attrs = useAttrs();
console.log(attrs);

const props = defineProps(["abc"]);
const emits = defineEmits(["zxc"]);
console.log(props);
console.log(emits);

</script>